/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package helpdiabetesj2me;

/**
 *
 * @author Johan
 */
public class SearchString {

    public final static int maxenteredstringlength = 20;// maximum length, I assume in reality it will never be 20 because the user will never enter 20 characters

    
    
    // this array will contain the letters in chars, entered by the user
    public char[] enteredstring = null;
    public int enteredstringlength; // the actual number of letters already in the array
    
    /**
     * Creates a new instance of enteredstring
     */
    /* size is the maximum size of the enteredstring */
    public SearchString() {
        enteredstring = new char[maxenteredstringlength+2];//to avoid any arrayindexoutofbondsexceptions
        enteredstringlength = 0;
    }
    
}
